Skip to content

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Mar 14, 2025

Description

Allow configuring the downloader when creating a blobs protocol handler

we don't allow passing in the entire downloader, but all config options.

Breaking Changes

iroh_blobs::downloader::Downloader now takes a config: Config argument instead of concurrency_limits: ConcurrencyLimits, retry_config: RetryConfig. Config has two public field concurrency_limits and retry_config, so the migration is straightforward.

Otherwise there's only additions (a new method downloader_config on the Blobs constructor).

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

… handler

we don't allow passing in the entire downloader, but all config options.
Copy link

github-actions bot commented Mar 14, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/76/docs/iroh_blobs/

Last updated: 2025-05-12T13:23:05Z

@n0bot n0bot bot added this to iroh Mar 14, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Mar 14, 2025
rklaehn added 3 commits March 14, 2025 10:25
…is properly applied.

- downloader handle has the config
- downloader handle gets an Arc<Inner>
# Conflicts:
#	src/net_protocol.rs
Copy link
Member

@ramfox ramfox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ramfox
Copy link
Member

ramfox commented Mar 14, 2025

semver check indicates breaking changes, should go in the PR description!

Copy link
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 besides me wondering about the Downloader struct wrapping.

@dignifiedquire
Copy link
Collaborator

@rklaehn what's the state of this PR?

@Frando Frando changed the title feat: Allow configuring the downloader when creating a blobs protocol handler feat!: Allow configuring the downloader when creating a blobs protocol handler May 12, 2025
@Frando
Copy link
Member

Frando commented May 12, 2025

Merged main, fixed the merge commits, and filled in the Breaking changes section in the PR description.

@ramfox ramfox merged commit 60be4ff into main May 12, 2025
26 of 27 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh May 12, 2025
@ramfox ramfox deleted the allow-downloader-config branch May 12, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants